$(function () {

    var cmdObj = {
        saleBillChart:function () {
            $("#iframe").prop("src","/stockOutcomeBill");
        },
        saleItemChart:function () {
            $("#iframe").prop("src","/smartAnalysis/saleItemChart");
        },
        saleItemReturnChart:function () {
            $("#iframe").prop("src","/smartAnalysis/saleItemReturnChart");
        },
        daily:function () {
            $("#iframe").prop("src","/smartAnalysis/daily");
        }
    }

    //调用cmdObj
    $("a[data-cmd]").click(function () {
        var cmd = $(this).data('cmd');
        cmdObj[cmd]();
    })


})